package com.bsoft.gol.hcb.serviceEnum;

/**
 * 医学工具、公式枚举类
 */
public enum MedicalToolsEnum {

    FILLING_AMOUNT("011","补纳总量","01","补纳计算"),
    TOTAL_SODIUM_CHLORIDE_SUP("012","补氯化钠总量","01","补纳计算"),
    SALINE_SUPPLEMENT("013","补生理盐水","01","补纳计算"),
    ADD_3_SODIUM_CHLORIDE("014","补3%氯化钠","01","补纳计算"),
    ADD_5_SODIUM_CHLORIDE("015","补5%氯化钠","01","补纳计算"),
    REHYDRATION_CAL_ONE("021","根据血细胞比积判断输液量","02","补液计算"),
    REHYDRATION_CAL_TWO("022","根据体表面积计算补充液","02","补液计算"),
    REHYDRATION_CAL_THREE("023","一般补液公式","02","补液计算"),
    IRON_CALCULATION_ONE("031","总缺铁量","03","补铁计算"),
    IRON_CALCULATION_TWO("032","贮存铁量","03","补铁计算"),
    IRON_CALCULATION_THREE("033","计算失血和支持自体捐血的患者铁补充的挤量","03","补铁计算"),
    TOTAL_AMOUNT_OF_ELE_MISSING("041","某种电解质缺少的总量","04","电解质补充计算"),
    HARRIS_BENEDIC_CAL("051","Harris-Benedic 计算公式","05","静息能量消耗计算"),
    DETERMINAT_OF_INFUSION_SPEED("061","输液速度判定","06","药物输液速度计算"),
    INFUSION_NUMBER_CALCULATIONL("062","静脉输液滴进数计算","06","药物输液速度计算"),
    BODY_SURFACE_AREA_CAL("071","体表面积计算","07","体表面积计算"),
    DIABETIC_DIET_CAL("081","糖尿病饮食计算","08","糖尿病饮食计算"),
    COCKCROFT_FORMULA("091","Cockcroft公式","09","肌酐清除率计算"),
    SIMPLIFIED_MDRD_FORMULA("092","简化MDRD公式","09","肌酐清除率计算"),
    STANDARD_24HOUR_URINERETENTION_CAL("093","标准24小时留尿计算","09","肌酐清除率计算");


    private String calculatorCode;
    private String calculatorName;
    private String calculatorParentCode;
    private String calculatorParentName;

    public String getCalculatorCode() {
        return calculatorCode;
    }

    public String getCalculatorName() {
        return calculatorName;
    }

    public String getCalculatorParentCode() {
        return calculatorParentCode;
    }

    public String getCalculatorParentName() {
        return calculatorParentName;
    }

    MedicalToolsEnum(String calculatorCode, String calculatorName, String calculatorParentCode, String calculatorParentName) {
        this.calculatorCode = calculatorCode;
        this.calculatorName = calculatorName;
        this.calculatorParentCode = calculatorParentCode;
        this.calculatorParentName = calculatorParentName;
    }

    public static MedicalToolsEnum get(String calculatorCode) {
        for (MedicalToolsEnum medicalToolsEnum : values()) {
            if (medicalToolsEnum.calculatorCode.equals(calculatorCode)) {
                return medicalToolsEnum;
            }
        }
        return null;
    }
}
